<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <title>JSP - Hello World</title>
</head>
<body>
<h1><%= "Hello World!" %>
</h1>
<br/>
<a href="hello-servlet">Hello Servlet</a>
<script src="js/jquery-1.12.4.js"></script>
<script type="text/javascript">
    var str='2021-04-03';
    // str=str.repeat(/-/g,"/");
    var str2='2021-04-13'
    var date=new Date(str);
    var now=new Date(str2);
    if (date<now){
        alert("666666")
    }else {
    }
</script>
</body>
</html>